package com.yubest.remotecall;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 启用 open feign
 */
@EnableFeignClients
/**
 * 启用 Hystrix
 */
@EnableCircuitBreaker
@EnableDiscoveryClient
@SpringBootApplication
public class SpringCloudRibbonFeignHystrixApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudRibbonFeignHystrixApplication.class, args);
    }

}
